<template>
  <div>
    <h1>喜洋洋会再一次拯救小伙伴吗</h1>
    <h3>有以下景点</h3>
    <hr />
    <table-node @click="mybtn" :list="list" :listB="listB"/>
  </div>
</template>
<script>
export default {
  data() {
    return {
      list: [
        { id: "name", name: "景点名称" },
        { id: "his", name: "景点故事" },
        { id: "road", name: "景点路线" },
      ],
      listB: [
        { id: "001", name: "喜洋洋之家",his:"喜洋洋在打灰太狼",road:"哎呀，打不过呀" },
        { id: "002", name: "懒洋洋之家",his:"红太狼在煮懒洋洋",road:"懒洋洋马上就要煮熟了" },
        { id: "003", name: "美洋洋之家",his:"美羊羊在照镜子",road:"这个羊肉烤起来一定很好吃叭" },
        { id: "004", name: "暖洋洋之家",his:"暖洋洋和蕉太狼在吃香蕉",road:"吃香蕉不吐香蕉皮皮" },
      ],
    };
  },
  methods:{
      mybtn(item){
          console.log(item)
      }
  }
};
</script>
